import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './common/store'
import RouterConfig from './common/routers'
import registerServiceWorker from './registerServiceWorker'
function reviwindow() {
    var vieWidth = document.documentElement.clientWidth;
    var vieHeight = document.documentElement.clientHeight;
    if (vieWidth > 768) vieWidth = 768;
    document.documentElement.style.fontSize = vieWidth / 7.5 + 'px';
    // document.documentElement.style.height=vieHeight+'px';
}
reviwindow();
window.onresize = function () {
    reviwindow()
};
const storeConfig = store()
ReactDOM.render(
    <Provider store={storeConfig}>
        <RouterConfig store={storeConfig} />
    </Provider>
    ,
    document.getElementById('root')
)
registerServiceWorker()